<?php

/**
 * @author luonghx
 * @copyright 2013
 */

class home extends MX_Controller
{

    function __construct()
    {
        parent::__construct();
       $this->layout->setLayout('layouts/home_layout');
       $this->load->model('post_model');
       $this->load->helper('text');
    }
    
    function index(){
         
        $data = array();
        $data['post5'] = $this->post_model->get_post5(5);
        $data['new_home'] = $data['post5'][0]; 
        $data['videos'] = $this->post_model->get_video(3);
        $this->layout->view("home_view",$data);
    }
    
}

?>